package com.itbaizhan.controller;

/**
 * @author spf
 * @date 2024/2/2
 * @time 21:17
 */

import com.itbaizhan.service.PaymentFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 订单控制器API
 */
@RestController
@RequestMapping("/order")
public class OrderController {

    @Autowired
    private PaymentFeignService paymentFeignService;

    @GetMapping("/index")
    public String index(){
        return paymentFeignService.index();
    }

    @GetMapping("/timeout")
    public String timeout(){
        return paymentFeignService.timeout();
    }
}
